package com.huatai.common.config;

import com.huatai.common.util.AuthUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @program: ht-system
 * @description: 读取配置文件
 * @author: songxiude
 * @create: 2023-02-08 15:57
 **/
@Component
public class JwtProperties {
	public static String key;
	@Value("${jwt.config.key}")
	private String tokenKey;

	@PostConstruct
	public void setNewKey(){
		key=this.tokenKey;
	}

	public static String getTokenKey(){
		return key;
	}

}
